package com.youdoneed.user.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.user.model.Job;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QJob is a Querydsl query type for Job
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QJob extends com.querydsl.sql.RelationalPathBase<Job> {

    private static final long serialVersionUID = -921006096;

    public static final QJob Job = new QJob("Job");

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final StringPath jobId = createString("jobId");

    public final StringPath name = createString("name");

    public final NumberPath<Integer> sort = createNumber("sort", Integer.class);

    public final NumberPath<Integer> state = createNumber("state", Integer.class);

    public final com.querydsl.sql.PrimaryKey<Job> primary = createPrimaryKey(jobId);

    public QJob(String variable) {
        super(Job.class, forVariable(variable), "null", "Job");
        addMetadata();
    }

    public QJob(String variable, String schema, String table) {
        super(Job.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QJob(String variable, String schema) {
        super(Job.class, forVariable(variable), schema, "Job");
        addMetadata();
    }

    public QJob(Path<? extends Job> path) {
        super(path.getType(), path.getMetadata(), "null", "Job");
        addMetadata();
    }

    public QJob(PathMetadata metadata) {
        super(Job.class, metadata, "null", "Job");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(createTime, ColumnMetadata.named("createTime").withIndex(5).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(jobId, ColumnMetadata.named("jobId").withIndex(1).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(name, ColumnMetadata.named("name").withIndex(2).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(sort, ColumnMetadata.named("sort").withIndex(3).ofType(Types.INTEGER).withSize(10));
        addMetadata(state, ColumnMetadata.named("state").withIndex(4).ofType(Types.INTEGER).withSize(10));
    }

}

